//
//  ItemList.m
//  ShoppingCompare
//
//  Created by Wenjie on 11-5-19.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "ItemList.h"


@implementation ItemList

@synthesize imageURL;
@synthesize nick;
@synthesize title;
@synthesize price;
@synthesize selected;

- (id)init {
	if (self = [super init]) {
		imageURL = @"noPic";
		nick = @"noName";
		title = @"";
		price = @"noPrice";
		selected = NO;
	}
	return self;
}

-(id) initWithImageURL:(NSString *) aImage andNick:(NSString *) aNick andTitle:(NSString *) aTitle
			  andPrice:(NSString *) aPrice {
	if (self = [super init]) {
		imageURL = [[NSString alloc] initWithString:aImage];
		nick = [[NSString alloc] initWithString:aNick];
		title = [[NSString alloc] initWithString:aTitle];
		price = [[NSString alloc] initWithString:aPrice];
		selected = NO;

	}
	return self;
}

@end